diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
index a2f972489f..963be46f83 100644
--- a/django/db/models/fields/files.py
+++ b/django/db/models/fields/files.py
@@ -299,7 +299,7 @@ class FileField(Field):
         file = super().pre_save(model_instance, add)
         if file and not file._committed:
             # Commit the file to storage prior to saving the model
-            file.save(file.name, file.file, save=False)
+            file.save(os.path.basename(file.name), file.file, save=False)
         return file
 
     def contribute_to_class(self, cls, name, **kwargs):
